import mitt from 'mitt';
export const eventBus = mitt();

//全部事件名称
export enum EventName {
    NAV_UPDATE = "NAV_UPDATE",
    GLOBAL_MESSAGE = "GLOBAL_MESSAGE"
}

//全局事件处理接口
export interface EventHandler {
    support(name: EventName): boolean
    handler(name: EventName, param: any): void
}


